package tool.zyk.generator;

import java.util.concurrent.ThreadLocalRandom;

/**
 * author: zyk
 * datetime: 2024/1/27 16:25
 * describe:
 */
public class RequestIdGenerator {
    private static final ThreadLocalRandom current = ThreadLocalRandom.current();
    private static final Integer idStart = 1000;
    private static final Integer idEnd = 9999;

    public static Long generateRequestId() {
        return Long.valueOf(System.currentTimeMillis() + "" + current.nextInt(idStart, idEnd));
    }
}
